package Interface;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JTextArea;
import javax.swing.JTextField;

public class AnswerComplaintPanel extends JFrame implements ActionListener{
	private JTextField txtCusId;
	private JTextField txtCusName;
	private JTextField txtCarId;
	private JTextArea txtDesc;
	private JLabel lblCusId;
	private JLabel lblCusName;
	private JLabel lblCarId;
	private JLabel lblDesc;
	private JButton btnComment;
	private JButton btnCreditCustomer;
	private JButton btnCharge;
	private JButton btnMainMenu;
	
	public AnswerComplaintPanel() {
		
		setTitle("Customer Complaint");
		this.setSize(500, 300);
		this.getContentPane().setLayout(null);
		
		lblCusId = new JLabel("Customer ID:");
		lblCusId.setBounds(10, 7, 75, 20);
		
		txtCusId = new JTextField();
		txtCusId.setBounds(88, 7, 75, 20);
		
		
		lblCusName = new JLabel("Customer Name:");
		lblCusName.setBounds(167, 10, 100, 14);
		
		txtCusName = new JTextField();
		txtCusName.setBounds(269, 7, 75, 20);
		
		lblCarId = new JLabel("Car ID:");
		lblCarId.setBounds(348, 10, 45, 14);
		
		txtCarId = new JTextField();
		txtCarId.setBounds(392, 7, 75, 20);
		
		
		
		getContentPane().add(lblCusId);
		getContentPane().add(txtCusId);
		getContentPane().add(lblCusName);
		getContentPane().add(txtCusName);
		getContentPane().add(lblCarId);
		getContentPane().add(txtCarId);
		
		txtDesc = new JTextArea();
		txtDesc.setBounds(88, 63, 380, 123);
		getContentPane().add(txtDesc);

		
		lblDesc = new JLabel("Description:");
		lblDesc.setBounds(10, 63, 75, 20);
		getContentPane().add(lblDesc);
		
		btnComment = new JButton("Comment");
		btnComment.setBounds(379, 205, 89, 23);
		getContentPane().add(btnComment);
		btnComment.addActionListener((ActionListener) this);
		
		btnCreditCustomer = new JButton("Credit");
		btnCreditCustomer.setBounds(280, 205, 89, 23);
		btnCreditCustomer.addActionListener(this);
		getContentPane().add(btnCreditCustomer);
		
		btnCharge = new JButton("Charge");
		btnCharge.addActionListener(this);
		btnCharge.setBounds(181, 205, 89, 23);
		getContentPane().add(btnCharge);
		
		btnMainMenu = new JButton("Main Menu");
		btnMainMenu.setBounds(76, 205, 95, 23);
		getContentPane().add(btnMainMenu);
		btnMainMenu.addActionListener(this);
		
		this.setDefaultCloseOperation(EXIT_ON_CLOSE);
		this.setVisible(true);
	}

	public void validateInput() {
	}

	public void sendMessageForAnswerComplaint() {
	}

	public void actionPerformed(ActionEvent e) {
		// TODO Auto-generated method stub
		
	}
}